//
//  HTTPURL.h
//  QiXingIos
//
//  Created by 李雪虎 on 2016/11/15.
//  Copyright © 2016年 王旭阳. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFHTTPSessionManager.h"
@interface HTTPURL : NSObject
+(void)postRequest:(NSString *)url parameters:(id)parameter success:(void (^)(NSURLSessionDataTask *  task, id   responseObject))ltSuccess
            filure:(void (^)(NSURLSessionDataTask *  task, id   error))ltFailure;
+(void)postRequest5s:(NSString *)url parameters:(id)parameter success:(void (^)(NSURLSessionDataTask *  task, id   responseObject))ltSuccess
            filure:(void (^)(NSURLSessionDataTask *  task, id   error))ltFailure;
+(void)getRequest:(NSString *)url parameters:(id)parameter success:(void (^)(NSURLSessionDataTask *  task, id   responseObject))ltSuccess
           filure:(void (^)(NSURLSessionDataTask *  task, id   error))ltFailure;
//提示框(两个按钮的)
+(UIAlertController *)showTwoAlertWithTitle:(NSString *)title
                                    message:( NSString *)message
                             preferredStyle:(UIAlertControllerStyle)preferredStyle
                                  sureTitle:(NSString *)sureTitle
                                cancelTitle:(NSString *)cancelTitle
                                  sureBlock:(void(^)())sureBlock
                                cancelBlock:(void(^)())cancelBlock;

//提示框(一个按钮的)
+(UIAlertController *)showOneAlertWithTitle:(NSString *)title
                                    message:( NSString *)message
                             preferredStyle:(UIAlertControllerStyle)preferredStyle
                                  sureTitle:(NSString *)sureTitle
                                  sureBlock:(void(^)())sureBlock;


//设置下拉动画文字
+(void)MJheaderDH:(MJRefreshGifHeader *)header;
+(void)MJfoodDH:(MJRefreshAutoGifFooter *)footer;
+(NSString *)compareCurrentTime:(NSString*)string;//时间转换
+ (NSString *)dateTimeDifferenceWithStartTime:(NSString *)startTime;//多少天前
+(void)promptViewmessage:(NSString *)message VC:(UIViewController*)VC sureBlock:(void(^)())sureBlock;

+ (BOOL)reachabilityConnection;
@end
